package de.ars.client.datahandling;

import java.util.Enumeration;
import java.util.Hashtable;

public class InformationGroup
{
    private String name;
    private Hashtable items;
    
    public InformationGroup(String name)
    {
        this.name = name;
        this.items = new Hashtable();
    }
    
    public String getName()
    {
        return this.name;
    }
    
    public void addItem(InformationItem item)
    {
        this.items.put( item.GetKey(),item );
    }
    
    public Enumeration getEnumeration()
    {
        return this.items.elements();
    }
    
    public InformationItem getItem(String name)
    {
        return (InformationItem)this.items.get( name );
    }
}

